package com.gaff.emp.core.modules.perm.service;

import com.gaff.emp.core.PageR;
import com.gaff.emp.core.modules.perm.controller.role.form.CreateForm;
import com.gaff.emp.core.modules.perm.controller.role.form.UpdateForm;
import com.gaff.emp.core.modules.perm.entity.SysMenu;
import com.gaff.emp.core.modules.perm.entity.SysRole;
import com.gaff.emp.core.modules.perm.entity.SysRoleMenu;

import java.util.List;
import java.util.Map;

public interface SysRoleService {

    SysRole queryById(Integer roleId);

    List<SysMenu> queryMenusByRoleId(int roleId);

    PageR queryRolesByPage(Map<String, Object> params);

    List<SysRole> queryAllRoles();

    void createRole(CreateForm form);

    void updateRole(UpdateForm form);

    void deleteById(Integer id);

}
